package top.hours48.ddbearapi.model.exception;

import lombok.Getter;

@Getter
public enum BusinessCode {
    SUCCESS(1000, "请求成功"),

    API_ERROR(9000, "接口异常"),
    VALIDATE_ERROR(9001, "入参校验失败"),
    RESPONSE_PACK_ERROR(9002, "返回数据封装错误");

    private Integer code;
    private String msg;

    BusinessCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
